# $Id$
# Maintainer: AndyRTR <andyrtr@archlinux.org>

pkgname=libxshmfence
pkgver=1.3
pkgrel=1
pkgdesc="a library that exposes a event API on top of Linux futexes"
arch=('x86_64')
url="https://xorg.freedesktop.org/"
license=('GPL')
#groups=()
depends=('glibc')
makedepends=('xorg-util-macros' 'xproto')
source=(${url}/releases/individual/lib/${pkgname}-${pkgver}.tar.bz2{,.sig})
sha512sums=('c446e055f8fac62b9aa266132289a4cfc030282147974c45ce96d1768a98d1afb997470e58e4a68513174c404cbf373bdde2f0cd4b34abdbce1d89dd0b6fe2b7'
            'SKIP')
validpgpkeys=('C383B778255613DFDB409D91DB221A6900000011') # Keith Packard <keithp@keithp.com>
validpgpkeys=('3BB639E56F861FA2E86505690FDD682D974CA72A') # "Matt Turner <mattst88@gmail.com>"

build() {
	cd $pkgname-$pkgver
	
	# fix some libtools errors
	#autoreconf -vfi
	
	./configure --prefix=/usr
	make
}

check() {
	cd $pkgname-$pkgver
	make -k check
}

package() {
	cd $pkgname-$pkgver
	make DESTDIR="$pkgdir/" install
	install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
	install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}
